﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MaxLib
{

    public class BritDummy : Dummy
    {
        private int heightInCentimeters;
        private int weightInKilograms;

        public BritDummy(int heightInCentimeters, int weightInKilograms)
            : base((int)(heightInCentimeters / 2.54), (int)(weightInKilograms / .454))
        {

        }

        public override int Height
        {
            get
            {
                return HeightInCentimeters;
            }
            protected set
            {
                HeightInCentimeters = value;
            }
        }

        public override int Weight
        {
            get
            {
                return WeightInKilograms;
            }
            protected set
            {
                WeightInKilograms = value;
            }
        }

        public int HeightInCentimeters
        {
            get { return (int)(base.HeightInInches * 2.54); }
            set { base.Height = (int)(value / 2.54); }
        }

        public int WeightInKilograms
        {
            get { return (int)(base.WeightInPounds * .454); }
            set { base.WeightInPounds = (int)(value / .454); }
        }
    }
}
